package com.common.constants;

import lombok.Getter;
import lombok.Setter;

public enum UserConstant {

    RUN(1);

    private Integer code;

    UserConstant(Integer code) {
        this.code = code;
    }


    public enum UserRoleENUM {

        MANAGER("0", "管理员"),
        COMMON("1", "普通用户");

        @Getter
        @Setter
        private String roleId;

        @Getter
        @Setter
        private String roleName;


        UserRoleENUM(String roleId, String roleName) {
            this.roleId = roleId;
            this.roleName = roleName;
        }
    }

    public enum UserStateENUM {

        NORMAL(0, "正常"),
        FORBIDDEN(1, "禁用");

        @Getter
        @Setter
        private Integer code;

        @Getter
        @Setter
        private String stateName;


        UserStateENUM(Integer code, String stateName) {
            this.code = code;
            this.stateName = stateName;
        }
    }


}
